//
// Created by nicemoe on 2021/8/8.
//

#include  <iostream>
#include <vector>

using namespace std;

int main()
{
    vector<int> v;
    v.push_back(1);
    v.push_back(2);
    v.push_back(3);
    cout << v.back() << endl;
    v.pop_back();
    cout << v.back() << endl;
    cout << v.front() << endl;
    cout << v.size() << endl;//2
    v.erase(v.begin());
    cout << v.size() << endl;//1
    v.resize(45);
    cout << v.empty() << endl;
    cout << v.size() << endl;//45

    //下面两个以上相等  auto是自动推断，根据后面的值的类型推断该变量的类型
    vector<int>::iterator it = v.begin();
    auto it1 = v.begin();
    cout << *it1.operator+(0);
    return 0;
}
